﻿using CPPEI.Net;
using CPPEI.ShareScreen.Event.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ShareScreen.ServerProxy.ResponseHandler
{
    public class GetClientListResponseHandler : BaseResponseHandler<Contract.RespGetClientListData>
    {
        protected override void OnHandle(NetPackage response, Contract.RespGetClientListData responseData)
        {
            UIGetClientListEvent @event = new UIGetClientListEvent();
            @event.IdArr = responseData.IdArr;
            @event.IPArr = responseData.IPArr;
            @event.PortArr = responseData.PortArr;
            UIEventBus.PublishAsync(@event);
        }
    }
}
